package app.beit.finportal.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.JoinColumn;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name="fin_webboard_reply")
@SequenceGenerator(allocationSize=1, name="seqHibernateName", sequenceName="seq_fin_webboard_reply")
public class WebboardReply extends BaseEntity {

	
	
	@Column(name="content", length=2000)
	private String content;
	
	@Column(name="webboard_id")
	private Long webboardId;

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="webboard_id", referencedColumnName="id", insertable=false, updatable=false)
	private Webboard webboard;
	
	@Column(name="is_admin")
	private char isAdmin;
	
	
	public char getIsAdmin() {
		return isAdmin;
	}

	public void setIsAdmin(char isAdmin) {
		this.isAdmin = isAdmin;
	}

	public Long getWebboardId() {
		return webboardId;
	}

	public void setWebboardId(Long webboardId) {
		this.webboardId = webboardId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Webboard getWebboard() {
		return webboard;
	}

	public void setWebboard(Webboard webboard) {
		this.webboard = webboard;
	}
	
	

}
